//
//  UIImage+VR.h
//  VRWeibo
//
//  Created by h3c-hp on 15/12/21.
//  Copyright © 2015年 h3c-mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (VR)

+ (UIImage *)imageWithColor:(UIColor*)color;
+ (UIImage *)resizedImageWithName:(NSString *)name;
+ (UIImage *)resizedImageWithName:(NSString *)name left:(CGFloat)left top:(CGFloat)top;

+ (UIImage *)originImageWithName: (NSString *)name;

- (UIImage *)circleImage;

/**
 *  压缩图片
 *
 *  @param image       被压缩图片
 *  @param maxFileSize 压缩后尺寸
 *
 */
+ (UIImage *)compressImage:(UIImage *)image toSize:(CGSize)imageSize toMaxFileSize:(NSInteger)maxFileSize;

@end
